package com.qqtech.qquan.draw.model;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class DrawBase extends BaseDomain{

	//columns START
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 过期时间
	 */
	private java.sql.Timestamp expireAt;
	/** 名称 */
	private java.lang.String name;


	/** 描述 */
	private java.lang.String remark;
	
    /** 开始时间 */
	private java.sql.Timestamp startAt;

	/** 结束时间 */
	private java.sql.Timestamp endAt;
	
	/**
	 * 类型
	 */
	private Integer type;
	/**
	 * 适用范围DrawRageTypeEnum:1-平台;2-社区
	 */
	private Integer rangeType;
	/**
	 * 社区抽奖的社区id
	 */
	private Integer communityId;

	//columns END
	public DrawBase(){
	}
	public DrawBase( java.lang.Integer id ){
		this.id = id;
	}
	public java.sql.Timestamp getEndAt() {
		return this.endAt;
	}
    public java.sql.Timestamp getExpireAt() {
		return expireAt;
	}
    public java.lang.String getName() {
		return this.name;
	}
    public java.lang.String getRemark() {
		return this.remark;
	}
	public java.sql.Timestamp getStartAt() {
		return this.startAt;
	}

	public Integer getStatus() {
		return status;
	}

	public Integer getType() {
		return type;
	}

	public void setEndAt(java.sql.Timestamp endAt) {
		this.endAt = endAt;
	}
	
	public void setExpireAt(java.sql.Timestamp expireAt) {
		this.expireAt = expireAt;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}
	
	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}

	public void setStartAt(java.sql.Timestamp startAt) {
		this.startAt = startAt;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
	public Integer getRangeType() {
		return rangeType;
	}
	public void setRangeType(Integer rangeType) {
		this.rangeType = rangeType;
	}
	public Integer getCommunityId() {
		return communityId;
	}
	public void setCommunityId(Integer communityId) {
		this.communityId = communityId;
	}
}

